<template>
  <div class="login">
<!-- <h1>Welcome to Huayu Pavilion</h1> -->
<h1>欢迎来到花语轩</h1>
<div class="main">
  <div class="signUp">
    <span @click="goToSignIn">Sign In</span>
  </div>
<div class="signIn">
  <div class="deadline">Sign Up</div>
  <el-form ref="loginForm" :model="loginForm" class="login_form" auto-complete="on" :rules="registerRules">
    <el-form-item prop="account">
      <el-input v-model="loginForm.username" placeholder="请输入账号"></el-input>
    </el-form-item>

    <el-form-item prop="password">
      <el-input v-model="loginForm.password" placeholder="请输入密码"></el-input>
    </el-form-item>


  </el-form>
  <el-button type="warning">SIGN IN</el-button>


</div>


</div>



  </div>
</template>

<script>
export default {
data(){
  return{
    loginForm:{
      username:'',
      password:''
    },
    registerRules: {
        account: [
          { required: true, message: '账号不能为空', trigger: 'blur' },
         
        ],
        password: [
            { required: true, message: '密码不能为空', trigger: 'blur' }
          ]
      }
  }
},
methods:{
  goToSignIn(){
      this.$router.push({ path: '/login'}).catch(err=>err)
    }
}

}
</script>

<style lang="scss">
.login{
  background-color: #884e22;
  // height: 100%;
  height: 1000px;
  h1{
    padding-top: 50px;
    color: #ffffff;
    font-size: 56px;
    margin-bottom: 50px;
  }
  .main{
    height: 700px;
    width: 40%;
    margin: auto;
    background-color: #ffffff;
    .signUp{
      text-align: right;
      color: #009ffb;
      font-size: 36px;
      
      margin-bottom: 100px;
      margin-right: 10px;
      span{
        cursor: pointer;
        
      }
      
    }
    .deadline{
    font-size: 50px;
    margin-bottom: 40px;
  }
  .signIn{
    .login_form{

      .el-input__inner{
        margin-left: 20px;
        width: 90%;
      }
      
    }
    .el-button {
      margin-top: 50px;
      width: 70%;
      height: 70px;
      
    }
  }
  }
  
}
</style>